package dk.lector.domain.entities;

import android.os.Parcel;
import android.os.Parcelable;

public class User implements Parcelable {
	
	private int id;
	private String username, password, usernamePlain, email, fullName; 
	private long timestamp, timestampActivity;
	
	public User(){id = 0;};
	public User(int id, String username, String password, String usernamePlain,
			String email, String fullName, long timestamp,
			long timestampActivity) {
		super();
		this.id =id;
		this.username = username;
		this.password = password;
		this.usernamePlain = usernamePlain;
		this.email = email;
		this.fullName = fullName;
		this.timestamp = timestamp;
		this.timestampActivity = timestampActivity;
		
	}
	
	public int getId()
	{
		return id;
	}
	public void setId(int id)
	{
		this.id = id;
	}
	
	public String getUsername() {
		return username;
	}
	public void setUsername(String username) {
		this.username = username;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public String getUsernamePlain() {
		return usernamePlain;
	}
	public void setUsernamePlain(String usernamePlain) {
		this.usernamePlain = usernamePlain;
	}
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public String getFullName() {
		return fullName;
	}
	public void setFullName(String fullName) {
		this.fullName = fullName;
	}
	public long getTimestamp() {
		return timestamp;
	}
	public void setTimestamp(long timestamp) {
		this.timestamp = timestamp;
	}
	public long getTimestampActivity() {
		return timestampActivity;
	}
	public void setTimestampActivity(long timestampActivity) {
		this.timestampActivity = timestampActivity;
	}
	public String toString()
	{
		return usernamePlain  + " Timestamp: " + timestamp + " Internal _id: " + id + " Encrypted username: " + username;
	}
	public int describeContents() {
		return id;
	} 
	public void writeToParcel(Parcel dest, int flags) {
		// TODO Auto-generated method stub
		
	}
	
}
